package models

import (
	"lifi"
)

type SourceConfig *lifi.PluginConfig

type RunningSource struct {
	Name     string       `json:"name" yaml:"name"`
	Interval int          `json:"interval" yaml:"interval"`
	Config   SourceConfig `json:"config" yaml:"config"`
	Source   lifi.Source
}

func NewRunningSource(source lifi.Source, config SourceConfig) *RunningSource {
	return &RunningSource{
		Source: source,
		Config: config,
	}
}
